package com.example.reagent_management.ui.home;

import androidx.lifecycle.MutableLiveData;
import androidx.lifecycle.ViewModel;

import com.example.reagent_management.ui.activity.data.PositionRequest;
import com.example.reagent_management.ui.home.pojo.OperateCounts;
import com.example.reagent_management.ui.home.pojo.PositionCounts;
import com.kunminx.architecture.ui.callback.UnPeekLiveData;

import java.util.List;

public class HomeFragmentViewModel extends ViewModel {

    //（1）MutableLiveData的父类是LiveData；
    //（2）LiveData在实体类里可以通知指定某个字段的数据更新；
    //（3）MutableLiveData则是完全是整个实体类或者数据类型变化后才通知.不会细节到某个字段。
    public final MutableLiveData<List<PositionCounts>> list = new MutableLiveData<>();

    public final MutableLiveData<List<OperateCounts>> operates = new MutableLiveData<>();
    //初始化位置数据
    public final PositionRequest requestList = new PositionRequest();

}
